package com.ryskoo.controller.basicdata;

import com.ryskoo.basicdata.area.region.domain.RegionPO;
import com.ryskoo.basicdata.area.region.service.IRegionService;
import com.ryskoo.framework.core.controller.BasicHandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 地区-区县管理
 * @author qyc
 */
@Controller
@RequestMapping("/vendor/basicdata/area/region")
public class RegionController extends BasicHandler<RegionPO> {

    private static final String TEMPLATE_PATH = "system/basicdata/area/region";

    private static final String MODULE_NAME = "Region";

    private IRegionService regionService;

    /**
     * 消费者注入
     *
     * @param regionConsumer 消费者基类
     */
    @Autowired
    protected void setService(IRegionService regionService) {
        this.regionService = regionService;
        super.setService(regionService);
    }

    public RegionController() {
        super(TEMPLATE_PATH, MODULE_NAME);
    }
}
